{include file="public/header" /}
<style type="text/css">
    .gray-bg {
        background: #fff;
    }

    .wrapper {
        padding: 0px;
    }

    .asdh5 h5 {
        border-top: 1px dotted #ccc;
        padding-top: 20px;
        margin-top: 20px;
    }

    #hidetent {
        display: none;
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="ibox-content">>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">类型：</label>
                        <div class="col-sm-9">
                            <div class="radio i-checks">
                                <label>
                                    <input type="radio" value="1" name="types" {present name="name"}{eq name="name.types" value="1"}checked{/eq}{else /}checked{/present}>普通
                                </label>
                                <label>
                                    <input type="radio" value="2" name="types" {present name="name"}{eq name="name.types" value="2"}checked{/eq}{/present}>VIP
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">图片：</label>
                        <div class="col-sm-9">
                            <div class="input-group">
                                <img src="{present name='name.cover'}{if condition='$name.cover'}__ROOT__{$name.cover}{else /}__IMG__add_img.png{/if}{else /}__IMG__add_img.png{/present}" id="imageimg" style="max-width: 100%;max-height: 600px">
                                <input name="cover" type="hidden"  id="image" class="form-control" value="{present name='name'}{$name.cover}{/present}">
                                <span class="input-group-btn">
                                    <button type="button" class="btn btn-primary" id="tubiao">上传</button>
                                </span>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">名称：</label>
                        <div class="col-sm-9">
                            <input name="name" type="text"  class="form-control" value="{present name='name'}{$name.name}{/present}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">价格：</label>
                        <div class="col-sm-9">
                            <input name="price" type="text" class="form-control" value="{present name='name'}{$name.price}{/present}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">简介：</label>
                        <div class="col-sm-9">
                            <textarea class="form-control" name="description">{present name="name"}{$name.description}{/present}</textarea>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
<script type="text/javascript">
    $(document).ready(function(){
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        })
    })

    $.each($("textarea"), function(i, n){
        $(n).css("height", n.scrollHeight + "px");
    })
</script>
{include file="public/bottom" /}
 
